From 333ba43fe207520000d544de703d5abfd43b1385 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 26 Feb 2016 13:47:56 -0800 Subject: [PATCH] Update dependency on git2 This crate was recently updated to the next release of libgit2, and I've noticed historically that a noop `cargo build` was slow in the git2-rs repository. Curious to see if the new libgit2 version helped speed things up at all, I tested it out. Before this commit, a noop `cargo build` produced 599108 syscalls. After this commit, a noop build produced 86925 syscalls, an 85% reduction in the number of syscalls! Needless to say it's much faster. --- Cargo.lock | 45 +++++++++++++++++++++++++++++++++++---------- Cargo.toml | 6 +++--- 2 files changed, 38 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e3adea9a7..43498a104 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,13 +11,13 @@ dependencies = [ "env_logger 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", "flate2 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", - "git2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "git2-curl 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "git2 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "git2-curl 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "hamcrest 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "libgit2-sys 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)", + "libgit2-sys 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.1.48 (registry+https://github.com/rust-lang/crates.io-index)", @@ -155,24 +155,24 @@ dependencies = [ [[package]] name = "git2" -version = "0.3.4" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)", - "libgit2-sys 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)", - "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", + "libgit2-sys 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "git2-curl" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "curl 0.2.16 (registry+https://github.com/rust-lang/crates.io-index)", - "git2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "git2 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", + "url 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -204,7 +204,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "libgit2-sys" -version = "0.3.11" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cmake 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)", @@ -410,6 +410,19 @@ dependencies = [ "rustc-serialize 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "unicode-bidi" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "unicode-normalization" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "url" version = "0.2.38" @@ -420,6 +433,18 @@ dependencies = [ "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "url" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-serialize 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-bidi 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-normalization 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "user32-sys" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 2f272b4a5..f54c4f138 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,12 +25,12 @@ docopt = "0.6" env_logger = "0.3" filetime = "0.1" flate2 = "0.2" -git2 = "0.3" -git2-curl = "0.3" +git2 = "0.4" +git2-curl = "0.4" glob = "0.2" kernel32-sys = "0.2" libc = "0.2" -libgit2-sys = "0.3" +libgit2-sys = "0.4" log = "0.3" num_cpus = "0.2" regex = "0.1" -- 2.30.2